home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
DATACH.CST
/
00285_Script_bar regionpop
< prev
next >
Wrap
Text File
|
1999-03-07
|
2KB
|
60 lines
property thePopLocc, popSpritec, popNamec, mySpritec, fieldObjc
global currentChartName, popbgSpritec
on new me
set mySpritec = the spriteNum of me
set popSpritec = mySpritec + 1
set popbgSpritec = mySpritec - 3
set right = the right of sprite (mySpritec - 2)
set top = the top of sprite (mySpritec -2)
set thePopLocc = point(right, top)
set popNamec = "region_field"
puppetSprite popSpritec, true
-- set faraway = point(-1000, -1000)
set the loc of sprite popSpritec = point(-1000, -1000)
return me
end
on register me, theObj
set fieldObjc = theObj
end
on mouseDown me
set the member of sprite popSpritec = member popNamec
set the loc of sprite popSpritec = thePopLocc
set the member of sprite popbgSpritec = member popNamec
set the loc of sprite popbgSpritec = thePopLocc
-- put "popped - " & thepoploc
updateStage
repeat while the stillDown
checkIfInsidec fieldObjc
end repeat
set the loc of sprite popSpritec = point(-1000, -1000)
set the loc of sprite popbgSpritec = point(-1000, -1000)
set name = getPlaneNamec(fieldObjc)
if name = "" then
nothing
else
set the text of field "bar_region" = name
mainbars
set xname = the text of field "displane"
compbars xname
end if
set the loc of sprite popSpritec = point(-1000, -1000)
set the loc of sprite popbgSpritec = point(-1000, -1000)
updateStage
end
on mouseUp me
nothing
end